package com.hebeu.gfh.mapper;

import com.hebeu.gfh.pojo.po.Activities;
import com.hebeu.gfh.pojo.po.ActivityApplication;
import com.hebeu.gfh.pojo.po.ActivityRegistrations;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @Author: 刘剑利
 * @Version: v1.0
 */
@Mapper
@ResponseBody
public interface activityApplicationMapper {
    public void submitApplication(ActivityApplication application);

    public List<ActivityApplication> getApplicationByuserId(int userId);

    public void approveApplication(int applicationId, int applicationState);

    public int isApplicated(@Param("userId") int userId,@Param("activityId") int activityId);

    public void passApplication(int applicationId);

    public List<ActivityApplication> getApplicationByUserId(@Param("userId") int userId,@Param("uid") int uid);

    public void unpassApplication(int applicationId);

    public Activities getApplicaitonById(int applicationId);

    public void addRegistration(ActivityRegistrations activityRegistrations);

    public List<ActivityApplication> getActivityApplicationByUserId(int userId);
}
